from rest_framework.pagination import PageNumberPagination


class StandardResultsSetPagination(PageNumberPagination):
    """自定义分页后端"""
    page_size = 2  # 每页最少多少条
    page_size_query_param = "page_size"  # 通过page_size指定每页多少条
    max_page_size = 20  # 每页最多多少条
